package model

import "errors"

type Order struct {
    ID   int
    Name string
}

func GetOrderByID(id string) (*Order, error) {
    // 模拟查数据库
    if id == "1" {
        return &Order{ID: 1, Name: "测试订单"}, nil
    }
    return nil, errors.New("order not found")
}